import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "知识库",
  description: "各种知识点分类集合",
  srcDir: './',
  cleanUrls: true,
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      { text: 'Home', link: '/' },
      { text: 'Course', link: '/course/TheFirst' },
    ],

    sidebar: [
      {
        text: 'Examples',
        items: [
          { text: 'Markdown Examples', link: '/markdown-examples' },
          { text: 'Runtime API Examples', link: '/api-examples' },
          {
            text: '软件项目管理', link: '/course/TheFirst', items: [
              { text: '1-软件项目管理概述', link: '/course/TheFirst' },
              { text: '2-软件开发过程管理o', link: '/course/TheSecond' },
              { text: '3-软件项目的准备和启动o', link: '/course/TheThird' },
              { text: '4-软件项目范围管理o', link: '/course/TheFourth' },
              { text: '5-软件项目需求管理o', link: '/course/TheFifth' },
              { text: '6-软件度量o', link: '/course/TheSixth' },
              { text: '7-软件项目计划', link: '/course/TheSeventh' },
              { text: '8-软件质量保证o', link: '/course/TheEight' },
              { text: '9-软件项目风险管理o', link: '/course/TheNinth' },
              { text: '10-软件项目配置管理o', link: '/course/TheTenth' },
              { text: '11-软件项目团队管理o', link: '/course/TheEleventh' },
              { text: '12-软件项目跟踪o', link: '/course/TheTwelfth' },
              { text: '13-软件项目收尾o', link: '/course/TheThirteenth' },
              { text: '软件生命周期模型优缺点及适用范围', link: '/course/ModelPeriod' },
              { text: '五大类软件生存期模型的介绍', link: '/course/FiveCategories' },
              { text: 'monorepo', link: '/course/Monorepo' },
              { text: 'pnpm+monorepo', link: '/course/PnpmMonorepo' },
            ]
          }
        ]
      }
    ],

    socialLinks: [
      { icon: 'github', link: 'https://github.com/vuejs/vitepress' }
    ]
  }
})
